package com.seh.contentcenter.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class PostDTO {
    //帖子Id
    private Integer postId;
    //帖子标题
    private String title;
    //内容
    private String content;
    //图片路径
    private String picPath;
    //作者id
    private Integer authorId;
    //创建时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String createTime;
    //更新时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String updateTime;
//    //回帖信息
//    private ReplyDTO replyDTO;
    //回帖条数
    private Integer replyCount;
    //用户信息
    private UserDTO userDTO;
}
